package com.sasu.university_data.util;

public enum ResponseCode {
    SUCCESS("200","请求成功"),
    FAIL("9999","网络异常"),
    UPDATE_FAILED("50000","修改失败"),
    ADD_FAILED("50001","添加失败"),
    DELETE_FAILED("50002","删除失败"),

    NULL_DATA("50003","暂无数据");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResponseCode() {
    }
}